import request from '../req'
// 销售数据
export const getPaySaleAchievement = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-sale-achievement', {
        params: params
    })
    return res
}

// 运营数据和其他数据
export const getPayOperate = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-operate', {
        params: params
    })
    return res
}

// 发薪方式统计 (按金额)
export const getPayModeByAmount = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-mode-by-amount', {
        params: params
    })
    return res
}

// 发薪方式统计 (按数量)
export const getPayModeByQuantity = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-mode-by-quantity', {
        params: params
    })
    return res
}

// 近7日开通销售趋势
export const getPayNearlySeven = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-nearly-seven', {
        params: params
    })
    return res
}

// 获取销售明细列表
export const getPayDetailed = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-detailed', {
        params: params
    })
    return res
}

// 获取销售明细列表
export const getRefundDetailed = async (params: any) => {
    let res = await request.get('/crm/record/get-refund-details', {
        params: params
    })
    return res
}

